package com.qf.erpb.product.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.erpb.finance.entity.FinanceClient;
import com.qf.erpb.finance.vo.FinanceClientVo;
import com.qf.erpb.product.vo.XgInventory;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

import java.awt.print.Pageable;
import java.util.List;

/**
* @author DELL
* @description 针对表【xg_inventory】的数据库操作Mapper
* @createDate 2023-12-22 11:47:58
* @Entity ggg.entity.XgInventory
*/
public interface XgInventoryMapper extends BaseMapper<XgInventory> {

    IPage<XgInventory> pageInventory(IPage<XgInventory> page,
                                     @Param(Constants.WRAPPER)
                                             Wrapper<XgInventory> wrapper);

    List<XgInventory> queryAllByLimit(XgInventory xgInventory, @Param("pageable") Pageable pageable);

    /**
     * 分页查询
     *
     * @param wrapper 查询条件
     * @return 总行数
     */
//    IPage<FinanceClientVo> queryByPage(IPage<FinanceClientVo> page, @Param(Constants.WRAPPER) Wrapper<FinanceClientVo> wrapper);

}




